package cc.core.animswitch;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        // 测试一下设置颜色
        // AnimSwitch as = ((AnimSwitch) findViewById(R.id.sw));
        // as.setFromRgb(new int[] { 238, 11, 11 });
        // as.setToRgb(new int[] { 4, 241, 43 });
        // as.setAnimDuration(10000);
    }

}
